home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Delphi Programmer's Power Pack
/
Delphi Volume 1.iso
/
e_to_l
/
gforms
/
demo2.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-09-15
|
830b
|
39 lines
unit Demo2;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, GFormSav;
type
TMDIChild = class(TForm)
FormSaver1: TFormSaver;
procedure FormCreate(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
{ Private declarations }
public
{ Public declarations }
end;
var
MDIChild: TMDIChild;
implementation
{$R *.DFM}
procedure TMDIChild.FormCreate(Sender: TObject);
begin
Caption := Caption + ' ' + IntToStr (Application.MainForm.MDIChildCount);
FormSaver1.IniSection := FormSaver1.IniSection + '.' + IntToStr (Application.MainForm.MDIChildCount);
end;
procedure TMDIChild.FormClose(Sender: TObject; var Action: TCloseAction);
begin
Action := caFree;
end;
end.